package Visitor;

public class Driver {

	public static void main(String args[]){
		
		Paragraph p1 = new Paragraph("Object-oriented Design");
		Paragraph p2 = new Paragraph("Design Patterns");
		
		Section s = new Section("Courses");
		s.add(p1).add(p2);
		
		Section c = new Section("Programme");
		c.add(s);
		c.Accept(new DisplayVisitor());
		//p1.Accept(new DisplayVisitor());
		//small change
	}
	
	
}
